<?php /* Smarty version Smarty-3.1.6, created on 2013-04-07 07:49:33
         compiled from "/home/zmx/erp2.1/DzhPHP/FrameWork/Tpl/SaleOrder/add.tpl" */ ?>
<?php /*%%SmartyHeaderCode:1158879168516108edc42bc1-07843936%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_valid = $_smarty_tpl->decodeProperties(array (
  'file_dependency' => 
  array (
    'd0d5c521edaf026218bed16300607cc767ed43b3' => 
    array (
      0 => '/home/zmx/erp2.1/DzhPHP/FrameWork/Tpl/SaleOrder/add.tpl',
      1 => 1364183646,
      2 => 'file',
    ),
  ),
  'nocache_hash' => '1158879168516108edc42bc1-07843936',
  'function' => 
  array (
  ),
  'variables' => 
  array (
    'lang' => 0,
    'rs' => 0,
    'this_time' => 0,
    'curr_time' => 0,
    'file_tocken' => 0,
    'sid' => 0,
  ),
  'has_nocache_code' => false,
  'version' => 'Smarty-3.1.6',
  'unifunc' => 'content_516108eddf9b1',
),false); /*/%%SmartyHeaderCode%%*/?>
<?php if ($_valid && !is_callable('content_516108eddf9b1')) {function content_516108eddf9b1($_smarty_tpl) {?><?php if (!is_callable('smarty_function_wz')) include '/home/zmx/erp2.1/DzhPHP/FrameWork/Extend/Vendor/Smarty/plugins/function.wz.php';
?><form action="<?php echo U('SaleOrder/insert');?>
" method="POST" onsubmit="return false">
<?php echo smarty_function_wz(array('action'=>"save,list,reset"),$_smarty_tpl);?>

<div class="add_box">
<table cellspacing="0" cellpadding="0" class="add_table">
    <tbody>
         <tr><th><?php echo $_smarty_tpl->tpl_vars['lang']->value['sale_order_basic'];?>
</th></tr>
         <tr><td>
         <div class="basic_tb">
          <ul> 
<input type="hidden" name="order_type" id="order_type" value="1"/>
<input type="hidden" name="sale_order_state" id="sale_order_state" value="1">
<input type="hidden" name="flow" id="flow" value="sale">
<li class="w320"><?php echo $_smarty_tpl->tpl_vars['lang']->value['client_name'];?>
： 
<input type="hidden" name="client_id" id="client_id" onchange="getClientInfo();">
    		<input type="text" name="client_name" id='client_name' url="<?php echo U('AutoComplete/client');?>
" jqac>__*__
    		<?php echo smarty_function_quicklyAdd(array('module'=>"Client"),$_smarty_tpl);?>
</li>
<?php echo smarty_function_company(array('type'=>"li",'title'=>$_smarty_tpl->tpl_vars['lang']->value['basic_name'],'hidden'=>array('name'=>'basic_id','id'=>'basic_id','onchange'=>'getClientInfo();'),'name'=>'basic_name','onchange'=>'getProductNo();','require'=>''),$_smarty_tpl);?>

<?php echo smarty_function_currency(array('data'=>C('CLIENT_CURRENCY'),'name'=>"currency_id",'id'=>"currency_id",'value'=>$_smarty_tpl->tpl_vars['rs']->value['currency_id'],'type'=>'li','title'=>$_smarty_tpl->tpl_vars['lang']->value['currency_name'],'require'=>'','onchange'=>"getBankCurrencry(this.value)"),$_smarty_tpl);?>

<li><?php echo $_smarty_tpl->tpl_vars['lang']->value['sale_date'];?>
：
					<input type="text" name="order_date"  id="order_date" value="<?php echo $_smarty_tpl->tpl_vars['this_time']->value;?>
" class="Wdate spc_input" 

<?php if (C('digital_format')=='eur'){?>
 
onClick="WdatePicker({dateFmt:'dd/MM/yy HH:mm:ss'})"

<?php }else{ ?>
 
onClick="WdatePicker({dateFmt:'yyyy-MM-dd HH:mm:ss'})"

<?php }?>

/>__*__</li> 
<?php if (C('sale.relation_sale_follow_up')==1){?>
	<li><?php echo $_smarty_tpl->tpl_vars['lang']->value['expect_shipping_date'];?>
：
						<input type="text" name="expect_shipping_date"  id="expect_shipping_date" value="<?php echo $_smarty_tpl->tpl_vars['curr_time']->value;?>
" class="Wdate spc_input" onClick="WdatePicker()"/>__*__</li> 					
<?php }?>					
	
</ul>
         </div>
         </td></tr>   
          <tr><th><?php echo $_smarty_tpl->tpl_vars['lang']->value['sale_order_detail'];?>
<span id="client_fund_show"></span></th></tr>   
          <tr><td><?php echo $_smarty_tpl->getSubTemplate ("SaleOrder/detail.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, null, null, array(), 0);?>
</td></tr>
          <tr><td valign="top" class="b_top">
				<table width="100%" border="0" cellspacing="0" cellpadding="0" class="add_table_money">
				  <tr>
				    <td class="b_top t_right"><?php echo $_smarty_tpl->tpl_vars['lang']->value['preferential_money'];?>
：</td>
				    <td width="121" class="b_top t_right"><span><input type="text" name="pr_money" id="pr_money"   onkeyup="$.dealWithPM();"></span></td>
				    <td width="60" class="b_top">&nbsp;</td>
				  </tr>
				    <tr id="sale_funds_after">
				    <td class="b_top t_right" ><?php echo $_smarty_tpl->tpl_vars['lang']->value['after_preferential_money'];?>
：</td>
				    <td class="b_top t_right_red" id="after_preferential_money">&nbsp;</td>
				    <td class="b_top">&nbsp;</td>
				  </tr> 
				  </table>
				  <?php if (C('sale.show_sale_advance')==1){?>
					 <table width="100%" border="0" cellspacing="0" cellpadding="0" class="add_table_money">
					    <tr>
					    <td class=" b_top t_right"><div><?php echo $_smarty_tpl->getSubTemplate ("Accounts/sale_funds.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, null, null, array(), 0);?>
 </div></td>
					  </tr></table> 
			     <?php }?>
				  <table width="100%" border="0" cellspacing="0" cellpadding="0" class="add_table_money">
				  <tr id="payadd">
				    <td class="t_right b_top"><?php echo $_smarty_tpl->tpl_vars['lang']->value['need_get_money1'];?>
：</td>
				    <td class="b_top t_right" width="121"><span class="t_right_red" id="need_get_money"></span> </td>
				    <td class="b_top" width="60"><input type="hidden" id="old_need_get_money" value="0"></td>
				  </tr> 
				  </table>
          </td></tr>
          <tr><td class="pad_top_10">
	          <table width="100%" cellspacing="0" cellpadding="0" border="0">
				<tbody>
					<tr>
					<td width="8%" valign="top"><?php echo $_smarty_tpl->tpl_vars['lang']->value['upload_pic'];?>
：</td>
					<td class="t_left" valign="top"><?php echo smarty_function_upload(array('tocken'=>$_smarty_tpl->tpl_vars['file_tocken']->value,'sid'=>$_smarty_tpl->tpl_vars['sid']->value,'type'=>3),$_smarty_tpl);?>
</td>
					<td width="7%" valign="top"><?php echo $_smarty_tpl->tpl_vars['lang']->value['receive_addr'];?>
：</td>
					<td class="t_left" width="25%" valign="top"><textarea id="receive_addr" class="textarea_height80" name="receive_addr"></textarea></td>
					<td width="7%" valign="top"><?php echo $_smarty_tpl->tpl_vars['lang']->value['comments'];?>
：</td>
					<td class="t_left" width="25%" valign="top"><textarea id="comments" class="textarea_height80" name="comments"></textarea></td>
					</tr>
				</tbody>
			 </table>
      </td></tr>                      
   </tbody>          
  </table>
  <?php echo smarty_function_staff(array(),$_smarty_tpl);?>

</div>
</form> 
<?php }} ?>